package com.punai.monthanalysis.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.punai.common.core.domain.BaseEntity;
import com.punai.externalccb.domain.YdCbfeeiteminfoStandard;
import com.punai.monthanalysis.bo.ProYdcbfxGcjdkhrgfdbfxbBo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.monthanalysis.mapper.ProYdcbfxGcjdkhrgfdbfxbMapper;
import com.punai.monthanalysis.domain.ProYdcbfxGcjdkhrgfdbfxb;
import com.punai.monthanalysis.service.IProYdcbfxGcjdkhrgfdbfxbService;

/**
 * 工程阶段考核人工费对比分析Service业务层处理
 *
 * @author zxw_
 * @date 2023-04-19
 */
@Service
public class ProYdcbfxGcjdkhrgfdbfxbServiceImpl extends ServiceImpl<ProYdcbfxGcjdkhrgfdbfxbMapper,ProYdcbfxGcjdkhrgfdbfxb> implements IProYdcbfxGcjdkhrgfdbfxbService
{
    @Autowired
    private ProYdcbfxGcjdkhrgfdbfxbMapper proYdcbfxGcjdkhrgfdbfxbMapper;

    @Override
    public List<? extends BaseEntity> getTabsDataList(String proId,String monthId,List<YdCbfeeiteminfoStandard> list,List<YdCbfeeiteminfoStandard> categorysList) {
        List<ProYdcbfxGcjdkhrgfdbfxb> resultList = proYdcbfxGcjdkhrgfdbfxbMapper.selectList(
                Wrappers.<ProYdcbfxGcjdkhrgfdbfxb>lambdaQuery()
                        .eq(ProYdcbfxGcjdkhrgfdbfxb::getProId, proId)
                        .orderBy(true,true, ProYdcbfxGcjdkhrgfdbfxb::getXh)
        );
        return ProYdcbfxGcjdkhrgfdbfxbBo.convert(resultList);
    }
}
